﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OOAD_Project_Engine.Application.Services;
using OOAD_Project_Engine.Foundation.Interfaces;
using OOAD_Project_Engine.Domain.Entities;

namespace OOAD_Project_Editor.Domain.ManageSceneActions
{
    class PasteAction : ManageSceneAction
    {
        Entity pasteEntity;

        public PasteAction(ISceneService scene, IEntity entity)
            : base(scene)
        {
            pasteEntity = entity as Entity;
        }

        public override void DoAction()
        {
            pasteEntity.Manager = this.Scene.Manager;
            this.Scene.Manager.Add(pasteEntity);
        }
    }
}
